//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.mybatisplus.base;

import java.io.Serializable;

public class LoginContext implements Serializable {
    private static final long serialVersionUID = -1807155832564219369L;
    private static final ThreadLocal<LoginEntity> loginContext = new ThreadLocal();

    public LoginContext() {
    }

    public static String getAccount() {
        return ((LoginEntity)loginContext.get()).getAccount();
    }

    public static  Integer getId() {
        return  ((LoginEntity)loginContext.get()).getId();
    }

    public static String getName() {
        return ((LoginEntity)loginContext.get()).getName();
    }

    public static void setLoginEntity(LoginEntity entity) {
        loginContext.set(entity);
    }

    public static void removeLoginEntity() {
        loginContext.remove();
    }

    public static LoginEntity getLoginEntity() {
        return (LoginEntity)loginContext.get();
    }
}
